﻿@model IList<StoreModel>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Stores").Text);
}
@using Nop.Core;
@using Nop.Core.Infrastructure;
@using Nop.Web.Framework.UI;
@using Nop.Web.Models.Catalog;
<div class="storeall-page">
    <div class="window">
        <div class="window-title grad-lightgrey grad">
            <div class="window-title-bar grad-titleshine grad">
                <h2>@T("Stores.List")</h2>
                <div class="window-title-links">
                    <a class="button-red" href="/Commerce">Back to Home</a>
                </div>
            </div>
        </div>


        @if (Model.Count > 0)
        {
            @(Html.DataList<StoreModel>(Model, 3,
                @<div class="panel-medium panel">
                    <div class="store-picture">
                        <a href="@Url.RouteUrl("Store", new { storeId = item.Id, SeName = item.SeName })" title="@item.PictureModel.Title">
                            <img style="border-width: 0px;" alt="@item.PictureModel.AlternateText" src="@item.PictureModel.ImageUrl"
                                    title="@item.PictureModel.Title" /></a>
                    </div>
                    <h3 class="store-title">
                        <a href="@Url.RouteUrl("Store", new { storeId = item.Id, SeName = item.SeName })" title="@item.PictureModel.Title">
                            @item.Name</a>
                    </h3>
                </div>
            ))
        }
    </div>
</div>
